/*****************************************************************************
 *This file is part of the "edic" EZX project
 *Copyright by nalsas dai <nalsasdai@gmail.com> Lanzhou University physics department
 ****************************************************************************/



/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation.                                         *
 *   ONLY VERSION 2 OF THE LICENSE IS APPLICABLE                           *
 *                                                                         *
 ***************************************************************************/

#ifndef __DICT_H_
#define __DICT_H_

void Decomp(char* src, char* dest, int bBinary);
void initkdic();//do some initial things
int openkdic(const char* dicfile);
char *getkdicname();
void closekdic();
char *findwordgeneral(char *strsrc,const char *key,int acc,int iscase,int loc,int* flag);
int  mystrcmp(const char *strsrc,const char *key,int iscase,int loc);
char *trim(char *strin);
int Decomp2(char **destbuf,int i, int bBinary);
char *searchword_extended_kdic(const char *queryword);
char *searchword_general_kdic(const char *queryword,int itemnum);
char *searchword_accurate_kdic(const char *queryword);


#endif /* __DICT_H_ */

